package com.battle.service.repository.in;

import com.battle.pojo.entity.TrainingGroup;
import com.battle.pojo.entity.TrainingSolo;
import com.battle.pojo.vo.trainingGroup.GetTrainingGroupListVo;
import nirvana.core.repository.IRepository;

import java.time.LocalDate;
import java.util.Map;
import java.util.List;

    import com.battle.pojo.dto.trainingGroup.SelectTrainingGroupDto;
    import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
/**
* 【描 述】：
* 【环 境】：J2SE
* 【详 细】：
*
*/
public interface TrainingGroupRepository extends IRepository< TrainingGroup > {


    /**
    * 搜索训练项目
    * @param dto
    * @return
    */
    Page<GetTrainingGroupListVo> selectTrainingGroup(SelectTrainingGroupDto dto);

    /**
    * 获取Map
    * @param ids
    * @return
    */
    Map<Long, TrainingGroup> getMap(List<Long> ids);

    /**
     * 根据组织架构ids和时间查询小组训练
     * @param organizationIds
     * @param startDate
     * @param endDate
     * @return
     */
    List<TrainingGroup> selectGroupByPath(List<Long> organizationIds, LocalDate startDate, LocalDate endDate,Long trainingProgramId );

}